<div>
  <h2>
    文章　
    <button type="button" class="btn btn-info" ui-sref="articleEdit">添加</button>
    <button type="button" class="btn btn-warning" ng-click="createFirstList()">生成首页文章列表</button>
  </h2>
</div>
<div>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th class="opr-td">操作</th>
        <th>标题</th>
        <th>发表时间</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="article in vm.articles.rows">
        <td class="opr-td">
          <button type="button" class="btn btn-xs btn-primary" ui-sref="articleEdit({id:{{article.id}}})">修改</button>
          <button type="button" class="btn btn-xs btn-danger" ng-click="del(article,$index)">删除</button>
        </td>
        <td>{{article.title}}</td>
        <td>{{article.deliverTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
      </tr>
    </tbody>
  </table>
  <ul uib-pagination ng-if="vm.articles && vm.count>0" ng-change="vm.pageChanged()" boundary-links="true" total-items="vm.count" ng-model="query.page" items-per-page="query.size" max-size="15"></ul>
</div>
